package com.fcscs.cservice.ws.client.inroomservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.inroomservice.GetCookOptionsRequest;
import com.fcscs.cservice.ws.schema.inroomservice.GetCookOptionsResponse;

public class GetCookOptionsClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(GetCookOptionsClient.class);

	public GetCookOptionsResponse getCookOptions(GetCookOptionsRequest req) {
		GetCookOptionsResponse resp = (GetCookOptionsResponse)getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("---------- GetCookOptionsResponse: " + resp.getCookOptionItemList() == null ? 0 : resp.getCookOptionItemList().size());
		return resp;
	}
}
